package cs301.msflags;

import cs301.game.*;

public class MSFlagsMainActivity extends GameMainActivity {

	/** The minesweeper flags game is for two players. The default is human vs. computer */
	@Override
	public GameConfig createDefaultConfig() {
		// Define the allowed player types
		GamePlayerType[] playerTypes = new GamePlayerType[2];
		playerTypes[0] = new GamePlayerType("Local Human Player", false,
				"cs301.msflags.MSFlagsHumanPlayer");
		playerTypes[1] = new GamePlayerType("Random AI Player", false,
				"cs301.msflags.MSFlagsComputerPlayer");

		// Create a game configuration class for MSFlags
		GameConfig defaultConfig = new GameConfig(playerTypes, 2, 2, "Minesweeper Flags Game");

		// Add the default players
		defaultConfig.addPlayer("Human", 0);
		defaultConfig.addPlayer("Computer", 1);
		
		//done!
		return defaultConfig;
	}//createDefaultConfig

	@Override
	public LocalGame createLocalGame(GameConfig config) {
		return new MSFlagsGame(config, 0);
	}

	// %%%TODO: Implement this method!
	@Override
	public ProxyPlayer createRemotePlayer() {
		// TODO Auto-generated method stub
		return null;
	}

	// %%%TODO: Implement this method!
	@Override
	public ProxyGame createRemoteGame(String hostName) {
		// TODO Auto-generated method stub
		return null;
	}

}
